﻿
#region Imports...
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using PAT.Web.UI;
#endregion

public partial class PatUbicacionGeograficaEdit : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{		
		FormUtil.RedirectAfterInsertUpdate(FormView1, "PatUbicacionGeograficaEdit.aspx?{0}", PatUbicacionGeograficaDataSource);
		FormUtil.RedirectAfterAddNew(FormView1, "PatUbicacionGeograficaEdit.aspx");
		FormUtil.RedirectAfterCancel(FormView1, "PatUbicacionGeografica.aspx");
		FormUtil.SetDefaultMode(FormView1, "IdUbicacion");
	}
	protected void GridViewPatTaller1_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("IdTaller={0}", GridViewPatTaller1.SelectedDataKey.Values[0]);
		Response.Redirect("PatTallerEdit.aspx?" + urlParams, true);		
	}	
	protected void GridViewPatEmpresa2_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("IdEmpresa={0}", GridViewPatEmpresa2.SelectedDataKey.Values[0]);
		Response.Redirect("PatEmpresaEdit.aspx?" + urlParams, true);		
	}	
	protected void GridViewPatUbicacionGeografica3_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("IdUbicacion={0}", GridViewPatUbicacionGeografica3.SelectedDataKey.Values[0]);
		Response.Redirect("PatUbicacionGeograficaEdit.aspx?" + urlParams, true);		
	}	
	protected void GridViewPatCliente4_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("IdCliente={0}", GridViewPatCliente4.SelectedDataKey.Values[0]);
		Response.Redirect("PatClienteEdit.aspx?" + urlParams, true);		
	}	
	protected void GridViewPatUsuario5_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("IdUsuario={0}", GridViewPatUsuario5.SelectedDataKey.Values[0]);
		Response.Redirect("PatUsuarioEdit.aspx?" + urlParams, true);		
	}	
}


